	<div class="shopping_center_top">
		<div class="shopping_center_top_left"></div>
		<div class="shopping_center_top_txt">购物车</div>
	</div>
	<?php if ($this->_var['cart_info']): ?>
	<div class="shopping_center_main" name="nimicar" >
        
		<?php $_from = $this->_var['goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods_0_50838400_1378259026');if (count($_from)):
    foreach ($_from AS $this->_var['goods_0_50838400_1378259026']):
?>
        <div class="shopping_div">
			<div class="shopping_div_img"><a href="/goods.php?id=<?php echo $this->_var['goods_0_50838400_1378259026']['goods_id']; ?>" target="_blank"><img src="<?php echo $this->_var['goods_0_50838400_1378259026']['goods_thumb']; ?>" /></a></div>
			<div class="shopping_div_txt_main">
				<Div class="shopping_div_txt_name"><a class="nimicar_name" href="/goods.php?id=<?php echo $this->_var['goods_0_50838400_1378259026']['goods_id']; ?>" target="_blank"><?php echo $this->_var['goods_0_50838400_1378259026']['goods_name']; ?></a></Div>
                
                <?php if ($this->_var['goods_0_50838400_1378259026']['is_gift'] != 0): ?>
                	<Div class="shopping_div_txt_names"><?php echo $this->_var['goods_0_50838400_1378259026']['goods_price']; ?>(活动价)</Div>
                <?php else: ?>
					<Div class="shopping_div_txt_names"><?php echo $this->_var['goods_0_50838400_1378259026']['goods_price']; ?></Div>
                <?php endif; ?>
			</div>
            
            <?php if ($this->_var['goods_0_50838400_1378259026']['parent_id'] != 0): ?>
            <div class="shopping_div_jisuan">
                <div class="shopping_cup_num_btn"></div>
                <div class="shopping_cup_num_cont"><input type="text" value="<?php echo $this->_var['goods_0_50838400_1378259026']['goods_number']; ?>"/></div>                   
            </div>    
            <?php else: ?>            
                <div class="shopping_div_jisuan">
                    <div class="shopping_cup_num_btn" name="JianName"><a href="javascript:void(0)" onclick="min_changenum(<?php echo $this->_var['goods_0_50838400_1378259026']['rec_id']; ?>,-1)"><img src="themes/default/images/jian.gif" /></a></div>
                    <div class="shopping_cup_num_cont">
                        <?php if ($this->_var['goods_0_50838400_1378259026']['goods_id'] > 0): ?>
                        <input type="text" name="goods_number[<?php echo $this->_var['goods_0_50838400_1378259026']['rec_id']; ?>]" maxLength="2" id="min_goods_number_<?php echo $this->_var['goods_0_50838400_1378259026']['rec_id']; ?>" value="<?php echo $this->_var['goods_0_50838400_1378259026']['goods_number']; ?>" onchange="min_change_goods_number(<?php echo $this->_var['goods_0_50838400_1378259026']['rec_id']; ?>,this.value)"/>
                        <?php else: ?>
                        <?php echo $this->_var['goods_0_50838400_1378259026']['goods_number']; ?>
                        <?php endif; ?>
                    </div>
                    <div class="shopping_cup_num_btn" name="JiaName"><a href="javascript:void(0)" onclick="min_changenum(<?php echo $this->_var['goods_0_50838400_1378259026']['rec_id']; ?>,1)"><img src="themes/default/images/jia.gif" /></a></div>
                </div>
            <?php endif; ?>
			<div class="shopping_div_bianjis">
				<a href="javascript:delete_cart(<?php echo $this->_var['goods_0_50838400_1378259026']['rec_id']; ?>);">删除</a>
			</div>
        </div>
		<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    </div>
	
	<input name="num_car" value="<?php echo $this->_var['total']['real_goods_count']; ?>" type="hidden">
	<div class="shopping_center_btm">
		<div class="shopping_center_btm_txt">
			<Div class="shopping_center_btm_left">共<span><?php echo $this->_var['total']['real_goods_count']; ?></span>件商品</Div>
			<div class="shopping_center_btm_right">小计：<span id="goods_amount">￥<?php echo $this->_var['total']['goods_amount']; ?></span></div>
		</div>
		<div class="minigou_btn"><a href="./flow.php?step=cart" target="_blank"></a></div>
	</div>
	<?php else: ?>
	<div class="shopping_center_main" name="nimicar" >Hi，您的购物车是空的</div>
	<?php endif; ?>
	
	

		